* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial;
    background-color: #f5f5f5;
    color: #333;
}

.container {
    margin: 0;
    max-width: none;
    height: 100%;
    border-radius: 0;
    background-color: transparent;
    box-shadow: none;
    padding: 0;
}

.project-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.project-title h1 {
    font-size: 24px;
    margin-bottom: 8px;
}

.tag {
    background-color: #e8f0fe;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    color: #1a73e8;
}

.btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    background-color: #1a73e8;
    color: white;
}

.project-status {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
}

.status-select, .priority-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

select {
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
    width: 200px;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

th {
    background-color: #f8f9fa;
    font-weight: 500;
}

tr:nth-child(even) {
    background-color: #f8f9fa;
}

.work-notes {
    margin-top: 20px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 10px;
    resize: vertical;
}

.button-group {
    display: flex;
    gap: 10px;
}

.main-container {
    display: flex;
    min-height: 100vh;
}

.main-sidebar {
    width: 10%;
    background-color: #2c3e50;
    padding: 15px;
    color: white;
}

.main-sidebar .nav-item {
    padding: 12px;
    margin-bottom: 8px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 14px;
    text-align: center;
}

.main-sidebar .nav-item:hover {
    background-color: #34495e;
}

.main-sidebar .nav-item.active {
    background-color: #3498db;
}

.content-wrapper {
    display: flex;
    width: 90%;
    padding: 20px;
    background-color: #f5f5f5;
}

.project-sidebar {
    width: 12.5%;
    background-color: white;
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-right: 20px;
}

.project-sidebar .project-item {
    padding: 8px;
    margin-bottom: 6px;
    cursor: pointer;
    border-radius: 4px;
    transition: background-color 0.3s;
    font-size: 13px;
}

.project-sidebar .project-item:hover {
    background-color: #e0e0e0;
}

.project-sidebar .project-item.active {
    background-color: #3498db;
    color: white;
}

.project-content {
    width: 87.5%;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    overflow-y: auto;
    max-height: calc(100vh - 40px);
}

::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

.milestone-name {
    display: flex;
    align-items: center;
    gap: 8px;
}

.expand-icon {
    cursor: pointer;
    user-select: none;
    color: #666;
    font-size: 12px;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 3px;
}

.expand-icon:hover {
    background-color: #f0f0f0;
}

.submilestone {
    background-color: #f8f9fa !important;
}

.submilestone td {
    font-size: 13px;
    color: #666;
}

tr:hover {
    background-color: #f5f5f5;
}

.submilestone:hover {
    background-color: #eef2f7 !important;
}

/* 添加新的项目列表样式 */
.project-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    margin-bottom: 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.project-item:hover {
    background-color: #f0f0f0;
}

.project-item.active {
    background-color: #e6f7ff;
    border-left: 3px solid #1890ff;
}

.project-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.project-status {
    font-size: 12px;
    padding: 2px 6px;
    border-radius: 10px;
    margin-left: 8px;
}

.project-status.in_progress {
    background-color: #e6f7ff;
    color: #1890ff;
}

.project-status.normal {
    background-color: #f6ffed;
    color: #52c41a;
}

/* 项目信息样式 */
.project-info {
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.project-info p {
    margin: 5px 0;
    color: #666;
    font-size: 14px;
}

/* 添加新的样式 */
.status-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    display: inline-block;
}

.status-badge.未完成 {
    background-color: #f0f0f0;
    color: #666;
}

.status-badge.进行中 {
    background-color: #e6f7ff;
    color: #1890ff;
}

.status-badge.已完成 {
    background-color: #f6ffed;
    color: #52c41a;
}

.priority-badge {
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 12px;
}

.priority-badge.最高 {
    background-color: #fff1f0;
    color: #f5222d;
}

.priority-badge.较高 {
    background-color: #fff7e6;
    color: #fa8c16;
}

.priority-badge.普通 {
    background-color: #f0f0f0;
    color: #666;
}

.stage-row {
    background-color: #fafafa;
}

.submilestone {
    background-color: #fff !important;
    border-left: 3px solid #e8e8e8;
}

/* 添加状态和优先级选择器的样式 */
.project-status-section {
    display: flex;
    gap: 20px;
    margin: 20px 0;
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
}

.status-select, .priority-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.status-select label, .priority-select label {
    font-size: 14px;
    color: #666;
}

.status-dropdown, .priority-dropdown {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    min-width: 200px;
    font-size: 14px;
    background-color: white;
}

.status-dropdown:focus, .priority-dropdown:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

/* 可选：添加下拉箭头样式 */
select {
    appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

/* 添加工作记录部分的样式 */
.work-notes-section {
    margin-top: 20px;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.current-work h3 {
    margin-bottom: 15px;
    color: #333;
    font-size: 16px;
}

.work-notes {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    resize: vertical;
    min-height: 100px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 15px;
}

.work-notes:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24, 144, 255, 0.2);
}

.button-group {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.btn.submit {
    background-color: #1890ff;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.btn.submit:hover {
    background-color: #40a9ff;
}

.btn.add-milestone {
    background-color: #fff;
    color: #1890ff;
    border: 1px solid #1890ff;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn.add-milestone:hover {
    background-color: #e6f7ff;
}

/* 按钮禁用状态 */
.btn:disabled {
    background-color: #f5f5f5;
    border-color: #d9d9d9;
    color: #999;
    cursor: not-allowed;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.5);
    z-index: 1000;
}

.modal-content {
    position: relative;
    background-color: #fff;
    margin: 10% auto;
    padding: 0;
    width: 500px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.modal-header {
    padding: 16px 24px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
}

.close {
    font-size: 24px;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.close:hover {
    color: #666;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #333;
    font-size: 14px;
}

.form-group input {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.form-group input:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
}

.form-actions .btn {
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.form-actions .cancel {
    background-color: #fff;
    border: 1px solid #d9d9d9;
    color: #666;
}

.form-actions .cancel:hover {
    color: #40a9ff;
    border-color: #40a9ff;
}

.form-actions .submit {
    background-color: #1890ff;
    border: none;
    color: #fff;
}

.form-actions .submit:hover {
    background-color: #40a9ff;
}

/* 日期输入框特殊样式 */
input[type="date"] {
    appearance: none;
    -webkit-appearance: none;
    padding-right: 30px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='4' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Cline x1='16' y1='2' x2='16' y2='6'%3E%3C/line%3E%3Cline x1='8' y1='2' x2='8' y2='6'%3E%3C/line%3E%3Cline x1='3' y1='10' x2='21' y2='10'%3E%3C/line%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
}

/* 添加下拉框特殊样式 */
.modal select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d9d9d9;
    border-radius: 4px;
    font-size: 14px;
    background-color: white;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 8.825L1.175 4 2.238 2.938 6 6.7l3.763-3.762L10.825 4z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 8px center;
    padding-right: 30px;
}

.modal select:focus {
    outline: none;
    border-color: #40a9ff;
    box-shadow: 0 0 0 2px rgba(24,144,255,0.2);
}

/* 优先级选项的颜色标识 */
#milestonePriority option[value="highest"] {
    color: #f5222d;
}

#milestonePriority option[value="high"] {
    color: #fa8c16;
}

#milestonePriority option[value="normal"] {
    color: #1890ff;
}

#milestonePriority option[value="low"] {
    color: #52c41a;
}

/* 状态选项的颜色标识 */
#milestoneStatus option[value="not_started"] {
    color: #666;
}

#milestoneStatus option[value="in_progress"] {
    color: #1890ff;
}

#milestoneStatus option[value="completed"] {
    color: #52c41a;
}

#milestoneStatus option[value="pending"] {
    color: #fa8c16;
} 